<?php
/**
Exibe as informa��es que foram inseridas no formul�rio de cadastro de Reserva
Ap�s confirmada, as informa��es ser�o inseridas no banco de dados.
*/

if( !function_exists('__autoload') )
{
    function __autoload($class_name) {
    require_once $class_name . '.php';
    }
}


// dados do formulário vindos de CadastrarRateio.php
$reservaId = $_GET['idReserva'];

$reservaDao = new Reserva();
$reserva = $reservaDao->CarregarReserva($reservaId);

?>
<html>
           <head>
           <title>SAEO - Remoção de Reserva </title>
           <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
           <link rel='stylesheet' type='text/css' href='templates/estilos.css'>
           </head>
     		<body class='body' ">
     		<form name='confirmar_reserva' action='EnviarDadosReserva.php?operacao=3' method='post'>
     		<table width='779' border='0' cellspacing='0' cellpadding='0' align='center' bgcolor='#FFFFFF'>
            <input name='reservaId' type="hidden" value="<?php echo $reservaId;?>"/>
            <tr>
				<td><?php include "Topo.php"; ?> </td>
			</tr>
            <tr>
                <td><div class='titulosTabelas' style='width:779; height:20; background:url(templates/tabela.jpg)'>CONFIRMAR REMOÇÃO DE RESERVA ORÇAMENTÁRIA</div></td>
            </tr>
            <tr>
                <td colspan='2'>&nbsp;</td>
            </tr>
            <tr>
            	
                <td><table class='tabela' width='650' border='0' cellspacing='0' cellpadding='0' align='center' bgcolor='#FFFFFF'>
                           <tr>
                               <td>&nbsp;</td>
                           </tr>
                           <tr>
                               <td class='textoTabelas' width='30%'>&nbsp;Ano:</td>
                               <td class='textoTabelas'><?php echo $reserva->ano->ano; ?></td>
                           </tr>
                           <tr>
                               <td>&nbsp;</td>
                           </tr>
                           <tr>
                               <td class='textoTabelas' width='30%'>&nbsp;Tipo de Despesa:</td>
                               <td class='textoTabelas'><?php echo ($reserva->tipoDespesa == 33)?"33 - Corrente" : "44 - Capital" ?></td>
                           </tr>                           
                           <tr>
                               <td colspan='2'>&nbsp;</td>
                           </tr>
                           <tr>
                               <td class='textoTabelas'>&nbsp;Unidade:</td>
                               <td class='textoTabelas'><?php echo $reserva->campus->nome; ?></td>
                           </tr>
                           <tr>
                               <td colspan='2'>&nbsp;</td>
                           </tr>
                           <tr>
                               <td class='textoTabelas'>&nbsp;Setor:</td>
                               <td class='textoTabelas'><?php echo $reserva->setor->nome; ?></td>
                           </tr>
                           <tr>
                               <td colspan='2'>&nbsp;</td>
                           </tr>
                           <tr>
                               <td class='textoTabelas'>&nbsp;Processo:</td>
                               <td class='textoTabelas'><?php echo $reserva->processo; ?></td>
                           </tr>
                           <tr>
                               <td colspan='2'>&nbsp;</td>
                           </tr>
                           <tr>
                               <td class='textoTabelas'>&nbsp;Modalidade Licitacao:</td>
                               <td class='textoTabelas'><?php echo $reserva->licitacao->sigla." - ".$reserva->licitacao->modalidade; ?></td>
                               
                           </tr>
                           <tr>
                               <td colspan='2'>&nbsp;</td>
                           </tr>
                           <tr>
                               <td class='textoTabelas'>&nbsp;Despesa:</td>
                               <td class='textoTabelas'><?php echo $reserva->despesa; ?></td>
                               
                           </tr>
                           <tr>
                               <td colspan='2'>&nbsp;</td>
                           </tr>
                           <tr>
                               <td class='textoTabelas'>&nbsp;Natureza de Depesa:</td>
                               <td class='textoTabelas'><?php echo $reserva->naturezaDespesa->id." - ".$reserva->naturezaDespesa->descricao; ?> 
                               </td>
                               
                               
                           </tr>
                           <tr>
                               <td colspan='2'>&nbsp;</td>
                           </tr>
                           <tr>
                               <td class='textoTabelas'>&nbsp;Subelemento:</td>
                               <td class='textoTabelas'><?php echo $reserva->subElemento->subElementoId." - ".$reserva->subElemento->descricao; ?> 
                               </td>
                               
                           </tr>
                           <tr>
                               <td colspan='2'>&nbsp;</td>
                           </tr>                                                      
                           <tr>
                               <td class='textoTabelas'>&nbsp;Valor da Reserva:</td>                               
                               <td class='textoTabelas'>R$&nbsp;<?php echo $reserva->valor * 0.01; ?></td>
                               
                           </tr>                           
                           <tr>
                               <td colspan='2'>&nbsp;</td>
                           </tr>                           
                           <tr>
                               <td colspan='2' height='46'><div style='position:relative;left:220px'><img style='width:100px;height:30px;cursor:pointer;' src='templates/btcancelar.png' onclick='javascript: history.go(-1);'>&nbsp
                               <input type='image' style='width:100px;height:30px;' src='templates/btremover.png'/></div></td>
                           <tr>
                     </table>
                </td>
            </tr>
            <tr>
                <td>&nbsp;</td>
            </tr>
            <tfoot>
           <tr>
                <td colspan='2'>&nbsp;</td>
            </tr>
                   <tr><?php include 'rodapeCreditos.php'; ?></tr>
            </tfoot>
     </table>
     </form>
     </body>
     </html>